-
Notifications
You must be signed in to change notification settings - Fork 121
[Bookings] Add Yosemite models for booking info #16245
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bookings] Add Yosemite models for booking info #16245
Conversation
Generated by 🚫 Danger |
|
|
| import Foundation | ||
| import Storage | ||
|
|
||
| // MARK: - Storage.BookingProductInfo: ReadOnlyConvertible |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm just wondering what these MARK notations do at the extensions? Are they used for code generation or something?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, just for clarity I believe.
adborbas
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice 👍

Part of: WOOMOB-1508
Description
This PR updates Yosemite layer to support storing extra info for bookings in the local storage. Changes include:
BookingOrderInfo,BookingCustomerInfo,BookingPaymentInfo,BookingProductInfomatching the relative Core Data entities added in Bookings: Add new entities for booking info #16242.ReadOnlyConvertibleconformance for the models to convert order info for the readonly Booking model.BookingStoreto map data from the fetched orders to associated bookings.In the next PR, the order info will be populated on the UI.
Testing steps
The new data is not used yet so just CI passing is sufficient.
Testing information
Added tests to confirm the new mapping logic.
Screenshots
N/A
RELEASE-NOTES.txtif necessary.